package com.cost.common;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.io.Serializable;

/**
 *  @author VULCAN
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */
@Component
public class AlipayConfig implements Serializable {

	/**
	 * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
	 */
	public static String app_id="2021000117602595";
	/**
	 *  商户私钥，您的PKCS8格式RSA2私钥
	 */
    public static String merchant_private_key="MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCGRJ/1ORQe8Uqq7DxKv+3v2ma4hRN5h8qCSxErslhcFp+zfv33IgixZpM6e9tOgMIyc70w8VpMP8ZwRMkpuLY50Sn/rLCL4y6F/8GWDdXMb008V/EXlInlRu39MEZU9PxBxGeMKWSR9sU8gzQ0dYvBz9O/iB+RMQJS4QaZv9mXcGG0g2gY3CArcPUm5/FgvCchScHDkSwDKmWZgt1qAKhXubP6qVZmYcS2swu4N3LqBVsjswn8f37orwA/IAsB5ujJvpQvGTI5eoHjZaVpHkzzBXyJH0A16GvwRkjbXcAkqUvjCinG7FFuHSLPgKKw1ZaVWOf0eZYhoUE1fYlHujAZAgMBAAECggEAY+ozYmeMSo5icxkCsNlsdX1/zTXyTRC4qQa1i1/XEwge5ZLN6JbiAymCzBWZGC0G1kZ8dixUdsNKpwb471wt9o5pA4L9icuQNlUhOMmo3M3CmvISTerSRtTmiu/elqAMC+Dc8VdoKJqLIcG9GoCSdLJ0L2Zbn07qHMSphcZXZLI1qbeYrAWPWACksxon+noJeP9cDOu4NnkVNoc4WCriCQ//0AMLVSiQlRBwFNU640GFMiwesS4uGeOlk5x60u2hw7O4IBQcsElYav1XVTl7Tqvn+wxUHjgwQJvG+QVLQVZJwQvgZsJoD5Syh4JVLojW4XidljUPLsCEv71dNU+oEQKBgQDyAzqb/WMBK3FMDjVWGXcXuu9GPULvbCvYZio58JAUc4cM/akoThs+gtktku8YPkUBs+n4zR5wKy0R6lPO3q9GfyFCnmQ+XMnVA/lcB+fuQ7X7SIl50pmmA+yEiGG7Cl7pxXPx2uvAcazjG6m+a3zhRT7ooq1PjMZoW9+WK4ypBQKBgQCOBzqPL8qtMufkwAiZX/ZLro69CJvNzxYMfciMNoVz7diEsJE8Uw6VoHJ3sIsRdQ6zzHLSqOutjN/r3jTtu5sCREliXSchRBArwsIYHjDsceNcqPxJUm4HpQ4swj7w5SOiB0zrx0OJfCiuH9UqkxkckFFvKSJMUzsBVLCjH7jHBQKBgQCzeNOJBMLcBjRx+4NwQ1g/H+D7zMiLt0NYqoMcDps6n2YCq0Y73phzpiOamYF4EA2qspqLaMnu0wYMaCMYoamH9RVcSwv592Ox9c2Bg1drKYmWPPe+gQByziwjKOSZCZrTcBuIuxnj0CkvDr+1uA6XHHwHl0RBXxtwHtnTip44ZQKBgFn2+EAE7OQjD8LVZV0J7TBpZN8W2eJXH8dP0b4HNyeE7Ja4ZXcJwX5EAN4SBTVMqcB4a+9GsurfBmQY//vqzzhzWuykxwmKXJfrqRiv3xuW1Ic4P36OaUYMZlsxu77J1nVnHHFpaj1nWTlazqNGRCzUudCpBKHGQuUH6U+a42elAoGBAKDGwTJU76ErNTOllCsl57YHJaP61NJoMvGl076JdsTWqL45Lq07RLmJ496ME1NqWmjGJYiLovfV2X5JaW8uzK9lqA0p/I/aDihMJxpAzBDpijmGe4QidHFC/YP9C7FxvsGPkLEM9gpsXS4FGQOseO6J5q4JAQBFpA+fX5xPcDPp";
	/**
	 * 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
	 */
	public static String alipay_public_key="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApL4UtVflIUWoJt/3urPIuqBNvH7XR2eoKmom4OmlwdGBxo7KI0ZraKvQz/ekST7jP0t200TENbqACfHhpDL5Ff6dl/OpyKp6jD1BgHLlmXPEA3mE3P2vhY0cp3tsEz0MrKz7C01vDf2pkQNVo44z9mzMrousHJZgBBJ1VWPCLKG+3J28XCWX9sGw0OBXTiaCliWnIG3W4WbtEpXddrLu71cM0+Gaa5xoLMY8BiRrVoZ16js8UXskNWXy0YkkwNKsOFRRu+UU0w4pNSjD/aOIj2jYYrccjilaAHCs/dzETSIRBW8dXtQa6Y77iXRUbQmtfFgKR1a3hwm0n8nTCnwxaQIDAQAB";
	/**
	 * 	服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	 */
	public static String notify_url = "https://www.baidu.com";
	/**
	 * 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	 */
	public static String return_url = "https://www.baidu.com";
	/**
	 * 	签名方式
	 */
	public static String sign_type = "RSA2";
	/**
	 * 	字符编码格式
	 */
	public static String charset = "utf-8";
	/**
	 * 	返回格式
	 */

    public static String format="json";
	/**
	 * 	 支付宝网关
	 */
	public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";
}

